<html>
<head><meta charset="utf-8"><title>rustc SIGSEGV · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html">rustc SIGSEGV</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215732516"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215732516" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215732516">(Nov 05 2020 at 16:02)</a>:</h4>
<p><span class="user-mention" data-user-id="119009">@eddyb</span> Regarding <a href="https://github.com/rust-lang/rust/issues/77869">rust#77869</a>, I tried to do all the setup on my Ryzen system, and the script said <code>Zen workaround in place</code>, but I still had problems with <code>rr</code> where when running past certain syscalls it would break with <code>Expected syscall_bp_vm to be clear but it's 2518439's address space with a breakpoint at 0x7f11b6c3e353 while we're at 0x70000008</code>.  </p>
<p>It would be really helpful if someone with a fastish Intel machine could try to reproduce (by running <code>touch src/lib.rs &amp;&amp; cargo check</code> in a loop in the legion repository).</p>



<a name="215743074"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743074" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743074">(Nov 05 2020 at 17:08)</a>:</h4>
<p>the command you need me to run is <a href="https://github.com/rust-lang/rust/issues/77869#issuecomment-714038009">https://github.com/rust-lang/rust/issues/77869#issuecomment-714038009</a> on legion?</p>



<a name="215743679"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743679" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743679">(Nov 05 2020 at 17:12)</a>:</h4>
<p>Yea.  Change the <code>rustc --crate-type ...</code> to <code>touch src/lib.rs &amp;&amp; cargo check</code>.</p>



<a name="215743714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743714">(Nov 05 2020 at 17:12)</a>:</h4>
<p>On my system, it fails after a minute or two.</p>



<a name="215743881"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743881" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743881">(Nov 05 2020 at 17:14)</a>:</h4>
<p>it's working fine on mine, up to 150 runs</p>



<a name="215743904"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743904" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743904">(Nov 05 2020 at 17:14)</a>:</h4>
<p>do I need to set a particular toolchain?</p>



<a name="215743944"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743944" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743944">(Nov 05 2020 at 17:14)</a>:</h4>
<p>currently it's using <code>rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24)</code></p>



<a name="215743973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743973">(Nov 05 2020 at 17:14)</a>:</h4>
<p>That's the exact same nightly I have.</p>



<a name="215743998"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215743998" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215743998">(Nov 05 2020 at 17:15)</a>:</h4>
<p>I also only have 8 cores though, so maybe it's related to that somehow?</p>



<a name="215744028"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215744028" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215744028">(Nov 05 2020 at 17:15)</a>:</h4>
<p>Possible, but unlikely.  It fails during expansion, and that is single-threaded.</p>



<a name="215744779"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215744779" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215744779">(Nov 05 2020 at 17:21)</a>:</h4>
<p>up to 650 tries :/ I don't think it's going to fail</p>



<a name="215745604"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215745604" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215745604">(Nov 05 2020 at 17:26)</a>:</h4>
<p>yup, ran 1000 times without failing</p>



<a name="215749447"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215749447" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215749447">(Nov 05 2020 at 17:51)</a>:</h4>
<p>Unfortunate, thanks for trying!  Hopefully it is not CPU-specific, that seems like it would be really hard to track down and harder to fix.</p>



<a name="215749642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215749642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215749642">(Nov 05 2020 at 17:53)</a>:</h4>
<p>in case it helps, this is an <code>Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz</code> with 8 virtual and 4 physical cores</p>



<a name="215749674"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215749674" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215749674">(Nov 05 2020 at 17:53)</a>:</h4>
<p>but yeah unfortunately this does sounds cpu-specific :/</p>



<a name="215751415"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215751415" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215751415">(Nov 05 2020 at 18:05)</a>:</h4>
<p>Is it worthwhile that I test on a <code>Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz</code> with 40cores?</p>



<a name="215751714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215751714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215751714">(Nov 05 2020 at 18:07)</a>:</h4>
<p>just for fun, I also tried it on windows, and WSL2 (which I don't think could even run <code>rr</code> so it's mostly for the anecdata), on <code>Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz</code> on the same nightly: no dice on either</p>



<a name="215752904"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215752904" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215752904">(Nov 05 2020 at 18:16)</a>:</h4>
<p>Yea, if other people could give it a try, that is helpful.   I can only reproduce on Linux.  I can't reproduce on Windows on the exact same AMD hardware.  The version of rustc shouldn't matter too much, as it seems to reproduce for me on a wide range.</p>



<a name="215755247"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215755247" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215755247">(Nov 05 2020 at 18:34)</a>:</h4>
<p>So I haven't read the issue in details but which version of <a href="http://foo.rs">foo.rs</a> should I use? And what is <code>legion</code>?</p>



<a name="215755316"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215755316" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215755316">(Nov 05 2020 at 18:34)</a>:</h4>
<p><span class="user-mention" data-user-id="281572">@marmeladema</span> <a href="https://github.com/amethyst/legion">https://github.com/amethyst/legion</a></p>



<a name="215755922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215755922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215755922">(Nov 05 2020 at 18:39)</a>:</h4>
<p>It's running</p>



<a name="215761663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215761663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215761663">(Nov 05 2020 at 19:25)</a>:</h4>
<p>almost done and no crash</p>



<a name="215812720"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215812720" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215812720">(Nov 06 2020 at 07:24)</a>:</h4>
<p>I can try testing that too, which <code>legion</code> commit should I use?</p>



<a name="215820206"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215820206" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215820206">(Nov 06 2020 at 09:10)</a>:</h4>
<p>I just cloned the last master personally</p>



<a name="215820469"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215820469" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215820469">(Nov 06 2020 at 09:13)</a>:</h4>
<p>Okay, I'm trying with the 2020-10-24 nightly, I can install an older one later</p>



<a name="215821911"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215821911" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215821911">(Nov 06 2020 at 09:28)</a>:</h4>
<blockquote>
<p>On my system, it fails after a minute or two.</p>
</blockquote>
<p>I'm at run 830</p>



<a name="215822507"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215822507" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215822507">(Nov 06 2020 at 09:35)</a>:</h4>
<p><code>nightly-2020-10-03</code> works too</p>



<a name="215863093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215863093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215863093">(Nov 06 2020 at 15:42)</a>:</h4>
<p><span class="user-mention silent" data-user-id="203546">Laurențiu Nicola</span> <a href="#narrow/stream/131828-t-compiler/topic/rustc.20SIGSEGV/near/215812720">said</a>:</p>
<blockquote>
<p>I can try testing that too, which <code>legion</code> commit should I use?</p>
</blockquote>
<p>I've been using the tag  <code>v0.3.1</code> (<a href="https://github.com/rust-lang/rust/commit/0733aa39b253b3404544afc3485d332429009799">0733aa39b253b3404544afc3485d332429009799</a>), but it looks like the latest master is still affected (<a href="https://github.com/rust-lang/rust/commit/8fe4588d934abad8faffb54beebf415b4880773d">8fe4588d934abad8faffb54beebf415b4880773d</a>).</p>



<a name="215863266"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215863266" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215863266">(Nov 06 2020 at 15:44)</a>:</h4>
<p>No luck, couldn't reproduce it</p>



<a name="215863295"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc%20SIGSEGV/near/215863295" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc.20SIGSEGV.html#215863295">(Nov 06 2020 at 15:44)</a>:</h4>
<p>Is it a CPU bug? <span aria-label="smiley" class="emoji emoji-1f603" role="img" title="smiley">:smiley:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>